<?php

/**
 * Fixes the slide type field name length
 *
 */
class Db_022_bbce_add_prezi_slidetype extends Ot_Migrate_Migration_Abstract
{
    public function up($dba)
    {
        $query = "INSERT INTO  `" . $this->tablePrefix . "tbl_slidetype` (`slidetype`, `status`) VALUES ('Prezi', 'enabled');";
        
        $dba->query($query);
    }
    
    public function down($dba)
    {       
        $query = "DELETE FROM '" . $this->tablePrefix . "tbl_slidetype' WHERE '" . $this->tablePrefix . "table_slidetype'.'slidetype' = 'Prezi'";
        $dba->query($query);
    }
}